package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShenChargeMapper;
import com.ruoyi.system.domain.ShenCharge;
import com.ruoyi.system.service.IShenChargeService;

/**
 * 收费类型Service业务层处理
 * 
 * @author skj
 * @date 2022-04-24
 */
@Service
public class ShenChargeServiceImpl implements IShenChargeService 
{
    @Autowired
    private ShenChargeMapper shenChargeMapper;

    /**
     * 查询收费类型
     * 
     * @param id 收费类型主键
     * @return 收费类型
     */
    @Override
    public ShenCharge selectShenChargeById(Long id)
    {
        return shenChargeMapper.selectShenChargeById(id);
    }

    /**
     * 查询收费类型列表
     * 
     * @param shenCharge 收费类型
     * @return 收费类型
     */
    @Override
    public List<ShenCharge> selectShenChargeList(ShenCharge shenCharge)
    {
        return shenChargeMapper.selectShenChargeList(shenCharge);
    }

    /**
     * 新增收费类型
     * 
     * @param shenCharge 收费类型
     * @return 结果
     */
    @Override
    public int insertShenCharge(ShenCharge shenCharge)
    {
        return shenChargeMapper.insertShenCharge(shenCharge);
    }

    /**
     * 修改收费类型
     * 
     * @param shenCharge 收费类型
     * @return 结果
     */
    @Override
    public int updateShenCharge(ShenCharge shenCharge)
    {
        return shenChargeMapper.updateShenCharge(shenCharge);
    }

    /**
     * 批量删除收费类型
     * 
     * @param ids 需要删除的收费类型主键
     * @return 结果
     */
    @Override
    public int deleteShenChargeByIds(Long[] ids)
    {
        return shenChargeMapper.deleteShenChargeByIds(ids);
    }

    /**
     * 删除收费类型信息
     * 
     * @param id 收费类型主键
     * @return 结果
     */
    @Override
    public int deleteShenChargeById(Long id)
    {
        return shenChargeMapper.deleteShenChargeById(id);
    }
}
